#ifndef __APP_CONFIG_H__
#define __APP_CONFIG_H__
/*********************************************************************************************************/	
/* Please comment this marco when you are sure about reload values*/

#define WARNING_ENABLE	 1

/*********************************************************************************************************/	

/**

	Options for UARTO Control

	//Word Length Select
	#define CHAR_LEN_5_BITS 
	#define CHAR_LEN_6_BITS 
	#define CHAR_LEN_7_BITS 
	#define CHAR_LEN_8_BITS 
	
	//Stop bit
	#define STOP_BIT_2 
	#define STOP_BIT_1 
	
	//parity Enable
	#define PARITY_ENABLE	
	
	
	//parity Select
	#define ODD_PARITY 
	#define EVEN_PARITY 
	#define MARK_PARITY 
	#define SPACE_PARITY 
	
	For Example
	#define UART0_CONTROL	(CHAR_LEN_8_BITS|STOP_BIT|PARITY_ENABLE|ODD_PARITY)
 	
*/
	#define __UART0__


//	#define UART0_DEBUG 1
   	#define UART0_BAUDRATE 	36
	#define UART0_CONTROL	(CHAR_LEN_8_BITS|STOP_BIT_1|PARITY_ENABLE|ODD_PARITY)
/*
	#define UART0 1
	#define UART0_BAUDRATE 	0x00000008

	#define UART0_CONTROL	(CHAR_LEN_8_BITS |STOP_BIT_1 | PARITY_DISABLE

	#define UART0_INTERRUPT 		0
	#define UART0_INTERRUPT_TX 		0
	#define UART0_INTERRUPT_RX 		0
	#define UART0_INTERRUPT_ERROR 	0
*/

/*********************************************************************************************************/	
//	#define	__UART1__

//		#define UART1_DEBUG 1

//	#define UART1_BAUDRATE 	0x00000008
//	#define UART1_CONTROL	(CHAR_LEN_8_BITS |STOP_BIT_1 | PARITY_DISABLE)
//	#define UART1_INTERRUPT 		0
//	#define UART1_INTERRUPT_TX 		0
//	#define UART1_INTERRUPT_RX 		0
//	#define UART1_INTERRUPT_ERROR 	0
/*********************************************************************************************************/		
	/**

	OPTION FOR SPI0 CONTROL REG

	#define MASTER_MODE_ENABLE  

	#define LSB_FIRST 

	#define SPI_INT_ENABLE 

	#define SPI_BITS_8 
	#define SPI_BITS_9 
	#define SPI_BITS_10
	#define SPI_BITS_11
	#define SPI_BITS_12
	#define SPI_BITS_13
	#define SPI_BITS_14
	#define SPI_BITS_15
	#define SPI_BITS_16 

	For Example 
	#define SPIO_CONTROL  (SPI_BITS_8|MASTER_MODE_ENABLE|LSB_FIRST)
*/





 	#define __SPI0__
////	#define SPI_INTERRUPT_ENABLE
	#define SPI0_CONTROL  (0x20)
	#define SPI0_CLOCK	 8
	
/*********************************************************************************************************/		
	
   #define __FIO__

/*********************************************************************************************************/		

//   #define __RTC__

/*********************************************************************************************************/		
//	#define __ADC__

/*********************************************************************************************************/		
	
	#define __TIMER32__
	#define TIMER0_ENABLE			1
	#define TIMER0_PRESCALER		0
	#define TIMER0_MATCH_CONTROL	T0MCR_MR0(MCR_INT_EN|MCR_RESET_EN)
	#define TIMER0_MATCH0_RELOAD	5529600
	//1000 ms at 22.1184

/*********************************************************************************************************/		

//	#define __SWI__

/*********************************************************************************************************/		
//	#define __WATCHDOG__
#endif
